<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Oxygine: oxygine::ThreadDispatcher Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Oxygine
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">2g game engine</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceoxygine.html">oxygine</a></li><li class="navelem"><a class="el" href="classoxygine_1_1_thread_dispatcher.html">ThreadDispatcher</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classoxygine_1_1_thread_dispatcher-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">oxygine::ThreadDispatcher Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_thread_dispatcher_8h_source.html">ThreadDispatcher.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structoxygine_1_1_thread_dispatcher_1_1message.html">message</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structoxygine_1_1_thread_dispatcher_1_1peek_message.html">peekMessage</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a6a963255df92781a11837abccd97a5e5"><td class="memItemLeft" align="right" valign="top"><a id="a6a963255df92781a11837abccd97a5e5"></a>
typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><b>callback</b>) (const <a class="el" href="structoxygine_1_1_thread_dispatcher_1_1message.html">message</a> &amp;m)</td></tr>
<tr class="separator:a6a963255df92781a11837abccd97a5e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9decbe059fa85ca451abb0e83795adc3"><td class="memItemLeft" align="right" valign="top"><a id="a9decbe059fa85ca451abb0e83795adc3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>empty</b> ()</td></tr>
<tr class="separator:a9decbe059fa85ca451abb0e83795adc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ba97e5553128f9d5e3d4d93c968065d"><td class="memItemLeft" align="right" valign="top"><a id="a3ba97e5553128f9d5e3d4d93c968065d"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> ()</td></tr>
<tr class="separator:a3ba97e5553128f9d5e3d4d93c968065d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e1b05cd4ffc5cccc844597872374146"><td class="memItemLeft" align="right" valign="top"><a id="a5e1b05cd4ffc5cccc844597872374146"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>wait</b> ()</td></tr>
<tr class="separator:a5e1b05cd4ffc5cccc844597872374146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f2a3a1025ea3d4f80701a0cbee0498e"><td class="memItemLeft" align="right" valign="top"><a id="a7f2a3a1025ea3d4f80701a0cbee0498e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>get</b> (<a class="el" href="structoxygine_1_1_thread_dispatcher_1_1message.html">message</a> &amp;ev)</td></tr>
<tr class="separator:a7f2a3a1025ea3d4f80701a0cbee0498e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43d8ba9d71260b5a7e3365cbe483bbb7"><td class="memItemLeft" align="right" valign="top"><a id="a43d8ba9d71260b5a7e3365cbe483bbb7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>peek</b> (<a class="el" href="structoxygine_1_1_thread_dispatcher_1_1peek_message.html">peekMessage</a> &amp;ev, bool del)</td></tr>
<tr class="separator:a43d8ba9d71260b5a7e3365cbe483bbb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d715a2a850630605b59c900faafadaa"><td class="memItemLeft" align="right" valign="top"><a id="a0d715a2a850630605b59c900faafadaa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr class="separator:a0d715a2a850630605b59c900faafadaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab16cfc38de28d582bb5095e6f9fe1800"><td class="memItemLeft" align="right" valign="top"><a id="ab16cfc38de28d582bb5095e6f9fe1800"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><b>send</b> (int msgid, void *arg1, void *arg2)</td></tr>
<tr class="separator:ab16cfc38de28d582bb5095e6f9fe1800"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0878565787066edb6c2fcbe5145020be"><td class="memItemLeft" align="right" valign="top"><a id="a0878565787066edb6c2fcbe5145020be"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><b>sendCallback</b> (void *arg1, void *arg2, callback cb, void *cbData, bool highPriority=false)</td></tr>
<tr class="separator:a0878565787066edb6c2fcbe5145020be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a085d0724898a0915f3025fa51f08ea85"><td class="memItemLeft" align="right" valign="top"><a id="a085d0724898a0915f3025fa51f08ea85"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sendCallback</b> (const std::function&lt; void()&gt; &amp;)</td></tr>
<tr class="separator:a085d0724898a0915f3025fa51f08ea85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7581223eb9f6d5c9820d818d592421ec"><td class="memItemLeft" align="right" valign="top"><a id="a7581223eb9f6d5c9820d818d592421ec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>post</b> (int msgid, void *arg1, void *arg2)</td></tr>
<tr class="separator:a7581223eb9f6d5c9820d818d592421ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00599ce6e63d3d4491ab69bca98f244c"><td class="memItemLeft" align="right" valign="top"><a id="a00599ce6e63d3d4491ab69bca98f244c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>postCallback</b> (int msgid, void *arg1, void *arg2, callback cb, void *cbData)</td></tr>
<tr class="separator:a00599ce6e63d3d4491ab69bca98f244c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80b16ff1c186f298399bbd31080b37f4"><td class="memItemLeft" align="right" valign="top"><a id="a80b16ff1c186f298399bbd31080b37f4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>postCallback</b> (void *arg1, void *arg2, callback cb, void *cbData)</td></tr>
<tr class="separator:a80b16ff1c186f298399bbd31080b37f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa138efbeac3cd6d2ea00d1d19a2d63b1"><td class="memItemLeft" align="right" valign="top"><a id="aa138efbeac3cd6d2ea00d1d19a2d63b1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>postCallback</b> (const std::function&lt; void()&gt; &amp;)</td></tr>
<tr class="separator:aa138efbeac3cd6d2ea00d1d19a2d63b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1cdc33c19be7cc614df066006c4d8fe"><td class="memItemLeft" align="right" valign="top"><a id="ab1cdc33c19be7cc614df066006c4d8fe"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>removeCallback</b> (int msgid, callback cb, void *cbData)</td></tr>
<tr class="separator:ab1cdc33c19be7cc614df066006c4d8fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42cd14a10314b0fa4bad6582de8f24ef"><td class="memItemLeft" align="right" valign="top"><a id="a42cd14a10314b0fa4bad6582de8f24ef"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>reply</b> (void *val)</td></tr>
<tr class="separator:a42cd14a10314b0fa4bad6582de8f24ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7a18dcd61453dbbfdbd045fa8d6a386"><td class="memItemLeft" align="right" valign="top"><a id="ac7a18dcd61453dbbfdbd045fa8d6a386"></a>
std::vector&lt; <a class="el" href="structoxygine_1_1_thread_dispatcher_1_1message.html">message</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>lockMessages</b> ()</td></tr>
<tr class="separator:ac7a18dcd61453dbbfdbd045fa8d6a386"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09f288cd4ab22d83a04817e64a5c41a8"><td class="memItemLeft" align="right" valign="top"><a id="a09f288cd4ab22d83a04817e64a5c41a8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>unlockMessages</b> ()</td></tr>
<tr class="separator:a09f288cd4ab22d83a04817e64a5c41a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Messages Queue used for communication between threads </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>oxygine/src/oxygine/core/<a class="el" href="_thread_dispatcher_8h_source.html">ThreadDispatcher.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Mar 4 2018 03:50:07 for Oxygine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
